package com.cskaoyan.javse.oop2._1extends._10final._3variable._4exercise;

/**
 *
 *
 * @since 16:33
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo {
    public static void main(String[] args) {
        byte num1 = 0;
        byte num2 = 0;
        final byte num3 = 10;
        final byte num4 = 20;
        byte result;
        // 下列代码哪行能通过编译，哪行不能？
        result = ((byte) (num1 + num2));
        result = num3 + num4; // 等同于 result = 10 + 20;
        result = ((byte) (num1 + num3));

    }

    public int test(final int a) {
        // return a++;
        return a + 1;
    }
}
